package edu.sctu.zhuyingzhi.month201506.day20150608.timerV1;

/**
 * Created by user13 on 2015/6/7.
 */
public class Start implements Runnable{
    private int i;
    private boolean judge = true;
    public void setJudge(boolean judge1){
        judge = judge1;
    }
    public int getTime(){
        return i;
    }
    @Override
    public void run() {
       while(judge) {
           System.out.println(i);
           try {
               Thread.sleep(1000);
           } catch (InterruptedException e) {
               e.printStackTrace();
           }
           i++;
       }
    }
}
